    // 颜色常量定义
    const COLOR_MAP = {
        POST: '#E28151',   // 橙色
        PUT: '#2db7f5',    // 亮蓝色
        DELETE: '#f50',    // 红色
        PATCH: '#800080',  // 紫色
        DEFAULT: '#87d068' // 绿色
    } as const;

    export const methodColorMap = (method?: string): string => {
        if (!method?.trim()) throw new Error('Method parameter is required');
        const normalizedMethod = method.toUpperCase();
        return COLOR_MAP[normalizedMethod as keyof typeof COLOR_MAP]
            || COLOR_MAP.DEFAULT;
    };